<?php namespace App\Http\Requests;

use App\Http\Requests\Request;
use Validator;
class UserTeamsRequest extends Request {

	/**
	 * Determine if the user is authorized to make this request.
	 *
	 * @return bool
	 */
	public function authorize()
	{
		return true;
	}

    public function attributes()
    {
        return [
            'realname' => '真实姓名',
            'position'  => '职位',
            'school'    => '学校',
            'profile'   => '个人简介',
            'wechat'    => '微信',
            'weibo'     => '微博',
            'maimai'    => '脉脉',
        ] ;
    }

	/**
	 * Get the validation rules that apply to the request.
	 *
	 * @return array
	 */
	public function rules()
	{
		return [
            'realname'  => 'required',
			'position'  => 'alpha_dash',
			'school'    => 'alpha_dash',
			'profile'   => 'alpha',
			'wechat'    => 'alpha_dash',
			'weibo'     => 'alpha_dash',
			'maimai'    => 'alpha_dash',
		];
	}


}
